package com.zeki;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * FeignClient 已经默认集成了 Ribbon
 */
@FeignClient("provider")  // 对应服务提供者的应用名
public interface HelloService {

    @GetMapping("/hello/{str}")
    String hello(@PathVariable String str);
}
